package com.polymorphic;

abstract class Animal {
    abstract void eat();

    public  void age(){
        //动态调用
        System.out.println("Animal 的 age "+nums());
    }

    public  int nums(){
        return 100;
    }
}